[1295] 为 LLM 假插件增加推理过程回显以支持样式与排版验证 - #4537
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
TeXmacs/plugins/llm/goldfish/tm-llm.scm中为离线假插件增加flush-fake-reasoning逻辑,在响应%chat假回复前构造输出包含推理标题与长正文的unfolded-explain树。dark grey、字号0.92、字重medium,支持(localize "View reasoning")国际化。dark grey、字号0.92、斜体italic,包裹长段中文测试文本以验证自动折叠换行。document末尾添加,""空段,避免后续%chat回显被 C++ 输入累积器(scheme_flush)并入同一concat节点而产生粘连。llm-trace.log)。Why
%chat纯文本,无法验证unfolded-explain折叠/展开块的排版与样式渲染。reasoning-delta边通道拼接机制,必须以完整文档树结构下发。How
(document (unfolded-explain ,(reasoning-title-tree) ,(reasoning-body-tree text)) ,"")树并通过flush-scheme下发。eval-and-print处理%chat假回复且生成成功时触发flush-fake-reasoning。验证
gf fmt --changed-since=main:格式化通过,无无关变更。任务文档:
devel/1295.md